package vip.xiaonuo.smzq.modular.lifecycle.vo;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
//import vip.xiaonuo.smzq.modular.drkqs.entity.KclKs;
import vip.xiaonuo.smzq.modular.kcl.entity.vo.KqfwCoordinates;
import vip.xiaonuo.smzq.modular.lifecycle.constant.LifeCycleConstant;
import vip.xiaonuo.smzq.modular.lifecycle.entity.KclKs;
import vip.xiaonuo.smzq.modular.lifecycle.entity.LifeCycleMineExtend;

import java.util.List;

/**
 * 查询矿山信息返回实体类
 * @auter GEOSCENE_于彦飞
 * @date 2024/02/20
 */
@Data
public class QueryMineInfoVO extends MineVO implements Cloneable {
//    @ApiModelProperty("探矿权类型")
//    private String mineObligeeType;

    @ApiModelProperty("全生命周期id")
    private String mineStoreId;

    @ApiModelProperty("矿区坐标字符串")
    private String dmlCoor;

    @ApiModelProperty("计算坐标坐标字符串")
    private String calCoor;

    @ApiModelProperty("动量坐标")
    private String momCoor;

    @ApiModelProperty("行政区名称")
    private String regionName;

    @ApiModelProperty("3d图形矿区范围高度信息列表")
    private List<ThreeWeftCoorVO> threeWeftCoorDmlVOS;
    private List<ThreeDHeightVO> threeDHeightDmlVOS;

    @ApiModelProperty("3d图形计算范围高度信息列表")
    private List<ThreeWeftCoorVO> threeWeftCoorCalVOS;
    private List<ThreeDHeightVO> threeDHeightCalVOS;


    @ApiModelProperty("3d图形动量范围高度信息列表")
    private List<ThreeWeftCoorVO> threeWeftCoorMomVOS;
    private List<ThreeDHeightVO> threeDHeightMomVOS;

   /* @ApiModelProperty("矿山中心点x坐标")
    private Double mineCenterX;

    @ApiModelProperty("矿山中心点y坐标")
    private Double mineCenterY;*/
    @ApiModelProperty("矿区WKT3矿权坐标字符串")
    private String wkt3MineRightCoordinate;

    @ApiModelProperty("计算WKT3矿权坐标字符串")
    private String calWkt3MineRightCoordinate;

    @ApiModelProperty("动量WKT3矿权坐标字符串")
    private String momWkt3MineRightCoordinate;

    @ApiModelProperty("矿区洞WKT3矿权坐标字符串")
    private String wkt3MineRightCoordinateHole;

    @ApiModelProperty("计算洞WKT3矿权坐标字符串")
    private String calWkt3MineRightCoordinateHole;

    @ApiModelProperty("动量洞WKT3矿权坐标字符串")
    private String momWkt3MineRightCoordinateHole;

    @ApiModelProperty("拐点坐标列表")
    private List<KqfwCoordinates> kqfwCoordinatesList;

    @ApiModelProperty("是否是从探矿权复制到无矿权的")
    private Boolean cpTkqToWkq;


    /**
     * 如果最后一位是0的则为矿区，其他的则为矿山
     */
    public void initKsType(){
        String regClassCode = Convert.toStr(super.getDjflbh());
        if(StrUtil.equals("1000",regClassCode)){
            this.setKsType(LifeCycleConstant.wly);
        }else if(StrUtil.startWith(regClassCode,"2")){
            this.setKsType(LifeCycleConstant.sc);
        }else if(StrUtil.startWith(regClassCode,"3")){
            this.setKsType(LifeCycleConstant.gb);
        }else if(StrUtil.startWith(regClassCode,"4")){
            this.setKsType(LifeCycleConstant.yf);
        }

        /*if(StrUtil.endWith(strDjflbh,"0")){
            this.setKsType("矿区");
        }else{
            this.setKsType("矿山");
        }*/

    }

    // Clone method
    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }



}
